package org.bingo.config;

import org.bingo.misc.VideoUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FFmpegConfiguration {

    @Value("${ffmpeg.home}")
    private String ffmpegHome;

    @Value("${ffmpeg.tmp}")
    private String ffmpegTmp;

    @Bean
    public VideoUtil videoUtil() {
        return new VideoUtil(ffmpegTmp, ffmpegHome);
    }
}
